Skip to content

Conversation

@toshihikoyanase
Copy link
Member

@toshihikoyanase toshihikoyanase commented Aug 26, 2025

Motivation

This PR aims to add scheduled build of docker images. Additionally, it will implement a feature to automatically publish images tagged with latest on a daily basis.
Although Optuna V4.5 was released two weeks ago, this repository lacks an automated mechanism to update dependencies, so the optuna-mcp:latest image continues to use Optuna V4.4.

Description of the changes

  • Add a schedule trigger
  • Build and release the latest image with the schedule trigger
  • Separated the handling of release and pull_request triggers into distinct steps

@c-bata c-bata self-assigned this Aug 26, 2025
Copy link
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look almost good to me. I left one minor comment.

- Dockerfile
- pyproject.toml
schedule:
- cron: '0 23 * * SUN-THU'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, running this action every weekday is too frequent, since there are no dependency updates in most cases but the Docker image is still rebuilt. How about reducing the frequency to once a week (e.g. every Monday)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your comment. Sounds reasonable. We'll push the same image again and again according to the recent development velocity of this repository. I'll reduce the frequency to a weekly basis (i.e., 0 23 * * SUN).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build is now scheduled for Monday at 8:00 AM JST. See ab62c40.

Copy link
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the update. LGTM.

@c-bata c-bata merged commit a07cce7 into optuna:main Aug 26, 2025
4 checks passed
@toshihikoyanase toshihikoyanase deleted the update-docker-image-daily branch September 10, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants